{extend name="user/index" /}

{block name="main"}
 <div class="content-page">
    <div class="content">
        <div class="row top-summary">
            <div class="col-md-12">

            <form class="am-form tpl-form-border-form tpl-form-border-br"
            action="{:url('admin/UserController/setrole')}" method="post">
            <input type="hidden" name="uid" value="{$id}">
            <div class="am-form-group">
                <label for="user-phone" class="am-u-sm-3 am-form-label">角色 <span
                class="tpl-form-line-small-title">Role</span></label>
                <div class="am-u-sm-9">

                {volist name="name" key="k" id="v"}

                <label><input name="rid[]" type="radio" value="{$v['id']}"

                {volist name="data" key="ke" id="n"}
                {$n['rid']==$v['id']?"checked":""}
                
                {/volist}
                /> {$v['name']}

                </label>

                {/volist}
                </div>
            </div>
            <div class="am-form-group">
                <div class="am-u-sm-9 am-u-sm-push-3">
                    <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交
                    </button>
                </div>
            </div>
            </form>
            </div>
        </div>
    </div>
</div>
{/block}